package com.lefeng.cockpit.common.config;

public class UserLocal {

    private static final ThreadLocal<String> USER = new ThreadLocal<>();


    public static void setUser(String userName) {
        USER.set(userName);
    }

    public static String getUser() {
        return USER.get();
    }

    public static void removeUser() {
        USER.remove();
    }

}
